package com.caht.mapper;

import com.caht.DTO.inertlikestateUserDTO;
import com.caht.entity.likestate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
@Mapper
public interface likestateMapper {
    /**
     * 查询点赞
     * @return
     */
    @Select("select * from likestate where user_id =  #{userId}")
    List<likestate> queryAll(Long userId);

    /**
     * 添加点赞详细信息
     * @param inertlikeDTO
     */
    void inertLike(inertlikestateUserDTO inertlikeDTO);

    /**
     * 取消点赞
     * @param inertlikestateUserDTO
     */
    void cancellation(inertlikestateUserDTO inertlikestateUserDTO);
}
